package com.wys.mall.auth.feign;

import com.wys.common.utils.R;
import com.wys.mall.auth.vo.SocialUser;
import com.wys.mall.auth.vo.UserLoginVo;
import com.wys.mall.auth.vo.UserRegisterVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @Package com.wys.mall.auth.feign
 * @Author charlin
 * @Version: v1.0
 * @Date 2021-07-0517:02
 * @Copyright: 2021 www.wyscha.com Inc. All rights reserved.
 */
@FeignClient("mall-member")
public interface MemberFeignService {

    @PostMapping("/member/member/regist")
    R regist(@RequestBody UserRegisterVo vo);

    @PostMapping("/member/member/login")
    R login(@RequestBody UserLoginVo vo);

    @PostMapping("/member/member/oauth2/login")
    R oauth2Login(@RequestBody SocialUser socialUser) throws Exception;
}
